package org.colin.dictPojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户答题记录表- 根据词头走
 * </p>
 *
 * @author LiRuiFeng
 * @since 2021-01-25
 */
@TableName("d_user_entry")
public class DUserEntry extends Model<DUserEntry> {

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 词头ID
     */
    @TableField("entryId")
    private Integer entryId;

    /**
     * 用户名
     */
    @TableField("userName")
    private String userName;

    /**
     * 是否正确
     */
    @TableField("isRight")
    private Boolean isRight;

    /**
     * 语种
     */
    private Integer language;

    /**
     * 等级
     */
    private Integer level;

    /**
     * 答题时间
     */
    @TableField("creaeTime")
    private LocalDateTime creaeTime;

    /**
     * 正确次数
     */
    @TableField("rightNum")
    private Integer rightNum;

    /**
     * 答题次数
     */
    private Integer num;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getEntryId() {
        return entryId;
    }

    public void setEntryId(Integer entryId) {
        this.entryId = entryId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Boolean getRight() {
        return isRight;
    }

    public void setRight(Boolean isRight) {
        this.isRight = isRight;
    }

    public Integer getLanguage() {
        return language;
    }

    public void setLanguage(Integer language) {
        this.language = language;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public LocalDateTime getCreaeTime() {
        return creaeTime;
    }

    public void setCreaeTime(LocalDateTime creaeTime) {
        this.creaeTime = creaeTime;
    }

    public Integer getRightNum() {
        return rightNum;
    }

    public void setRightNum(Integer rightNum) {
        this.rightNum = rightNum;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DUserEntry{" +
        "id=" + id +
        ", entryId=" + entryId +
        ", userName=" + userName +
        ", isRight=" + isRight +
        ", language=" + language +
        ", level=" + level +
        ", creaeTime=" + creaeTime +
        ", rightNum=" + rightNum +
        ", num=" + num +
        "}";
    }
}
